<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:73:"D:\phpStudy\WWW\mangmeshi/./application/admin\view\groups\group_info.html";i:1528001030;}*/ ?>
<div>
    <form class="form-horizontal bv-form"  role="form" >
        <fieldset>
            <legend>基本信息</legend>
            <div class="form-group">
                <label class="col-sm-3 control-label">群组名称</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control" disabled value="<?php echo $data['g_name']; ?>">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">群主</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control" disabled value="<?php echo $data['user_username']; ?>">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">群主号码</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control" disabled  value="<?php echo $data['user_phone']; ?>">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">群公告</label>
                <div class="col-sm-6">
                    <textarea class="form-control" cols="35" rows="5" disabled><?php echo $data['g_notice']; ?></textarea>
                </div>
            </div>
            <!--TODO 图片 最多九张-->
            <div class="form-group">
                <label class="col-sm-3 control-label">群组图片</label>
                <div class="col-sm-6">
                    <?php if($data['g_thumb']): ?>
                    <img src="<?php echo $data['g_thumb']; ?>" alt="" height="100" />
                    <?php else: ?>
                    无群组图片
                    <?php endif; ?>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">群组成员：
                    <?php if(!$data['g_uids']): ?>
                    0
                    <?php else: ?>
                    <?php echo count($data['g_uids']); endif; ?>
                </label>
                <div class="col-sm-6">

                </div>
            </div>
            <?php if($data['g_uids']): ?>
            <div style="width: 100%;">
                <?php if(is_array($data['g_uids']) || $data['g_uids'] instanceof \think\Collection): $i = 0; $__LIST__ = $data['g_uids'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$u): $mod = ($i % 2 );++$i;?>
                <div style="width: 15%;height: auto;margin: 0.8%;float: right">
                    <img src="<?php if($u['user_image']): ?><?php echo $u['user_image']; else: ?>http://mms.mangmeshi.com/mang/touxiang.png<?php endif; ?>" alt="" style="width: 100%;"/>
                    <span style="width: 100%;text-align: center;display: block;overflow: hidden;height: 20px;line-height: 20px;font-size: 13px;"><?php echo $u['user_username']; ?></span>
                </div>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
            <?php endif; ?>

            <!--end-->
            <div style="clear: both;height: 10px;"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">群组状态</label>
                <div class="col-sm-6">
                    <select disabled class="form-control" style="font-size: 13px;">
                        <option <?php if($data['g_status'] == 1): ?> selected <?php endif; ?> value="1">正常</option>
                        <option <?php if($data['g_status'] == 2): ?> selected <?php endif; ?> value="2">已解散</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">创建时间</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control" disabled  value="<?php echo $data['g_time']; ?>">
                </div>
            </div>

        </fieldset>
    </form>
</div>